"""
@author: wg
@file: homework12_4_2.py
@time: 2023/12/4 17:00
"""

# 2、excel文件的导入

import pandas as pd

# 读取Excel文件
data = pd.read_excel('homework12_4_2.xlsx')
# 选取第三列的数据并相加
num = data.iloc[:, 2].sum()
# 打印数据
print(f"年龄总和为{num}")
